package com.reebake.ideal.verify.code.core;

import com.reebake.ideal.verify.code.entity.VerifyCodeEntity;

/**
 * 验证码存储接口
 */
public interface VerifyCodeStorage {

    /**
     * 保存验证码
     * @param verifyCodeEntity 验证码实体
     */
    public void save(VerifyCodeEntity verifyCodeEntity);

    /**
     * 获取验证码
     * @param sendKey 存储key
     * @return 验证码实体
     */
    public VerifyCodeEntity get(String sendKey);

    /**
     * 删除
     * @param sendKey 存储key
     */
    public void remove(String sendKey);

}
